package com.cyh.ebptbatchwar.config;

import org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * 不让springbatch使用数据库，不设置数据源
 */
//@Configuration
//@EnableBatchProcessing
//public class BatchConfig extends DefaultBatchConfigurer {
//    @Override
//    public void setDataSource(DataSource dataSource) {
//        //This BatchConfigurer ignores any DataSource
//    }
//}
